var testCase1 = new YAHOO.tooa.TestCase({
  name: "Test the definition of learning units",
  setUp : function () {
      this.ex1 = new ArithmeticExercise( oa.additionOf1, 5, oa.rf.individualEquationWithResultInput);
      this.ex2 = new ArithmeticExercise( oa.additionOf2, 5, oa.rf.individualEquationWithResultInput);
      this.ex3 = new ArithmeticExercise( oa.additionOf3, 4, oa.rf.individualEquationWithResultInput);
      this.lU1 = new LearningUnit(
          1,
          "Addition of 1, 2 and 3",
          "Addition of 1, 2 and 3",
          1,
          [ this.ex1, this.ex2, this.ex3] 
        );
  },
  tearDown : function () {
      delete this.rT1;
      delete this.ex1;
      delete this.ex2;
      delete this.ex3;
      delete this.lU1;
  },

  testLearningUnitContents: function () {
    var Assert = YAHOO.util.Assert;
    Assert.isInstanceOf( ArithmeticExercise, this.ex1, "Value should be an instance of ArithmeticExercise.");
    Assert.isInstanceOf( LearningUnit, this.lU1, "Value should be an instance of LearningUnit.");
    Assert.isArray( this.lU1.exercises,"Value should be an array.");
    Assert.isTrue( this.lU1.exercises[0].numberOfProblems >= 1, "There should be at least one exercise.");
  },
});
